package com.itheima.boottlias.domain.query;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-07-11 16:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class QueryParam {

    /**
     * 当前页码
     */
    private Integer page = 1;

    /**
     * 每页显示条数
     */
    private Integer pageSize = 10;

    /**
     * 名称
     */
    private String name;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 入职开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;

    /**
     * 入职结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;

    // 学生分页查询参数
    private Integer clazzId;
    private Integer degree;


}
